/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1persondemo;

/**
 *
 * @author apple
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Person mike=new Person("Mike", 18);
        Person joy=new Person("Joy", 19);
        
        mike.helloto(joy);
        joy.helloto(mike);
        
        mike.say("What is the weather today?");
        joy.say("it is cloudy,I am so comfortable.");
        
        mike.bye();
        joy.bye();
    }
    
}
